<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能应用 - 源智库 SpringBase</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #0d6efd;
            --secondary-color: #6c757d;
            --bg-color: #f4f7fa;
            --sidebar-bg: #ffffff;
            --header-bg: #ffffff;
            --card-bg: #ffffff;
            --text-color: #212529;
            --text-muted-color: #6c757d;
            --border-color: #dee2e6;
        }

        body {
            background-color: var(--bg-color);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            font-size: 14px;
        }

        .wrapper {
            display: flex;
            min-height: 100vh;
        }

        .sidebar {
            width: 260px;
            background-color: var(--sidebar-bg);
            border-right: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 100;
        }
        
        .sidebar-header {
            padding: 1.5rem 1.5rem;
            display: flex;
            align-items: center;
        }
        
        .sidebar-header .logo-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-right: 0.75rem;
            line-height: 1;
        }
        
        .sidebar-header .logo-text {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .sidebar-nav {
            padding: 0 1rem;
        }

        .nav-item {
            margin-bottom: 0.5rem;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            color: var(--text-muted-color);
            border-radius: 0.5rem;
            font-weight: 500;
        }

        .nav-link:hover {
            background-color: var(--bg-color);
            color: var(--primary-color);
        }

        .nav-link.active {
            background-color: var(--primary-color);
            color: #fff;
        }
        
        .nav-link i {
            margin-right: 1rem;
            font-size: 1.1rem;
        }

        .main-content {
            margin-left: 260px;
            width: calc(100% - 260px);
            display: flex;
            flex-direction: column;
        }

        .header {
            background-color: var(--header-bg);
            padding: 1rem 2rem;
            border-bottom: 1px solid var(--border-color);
        }

        .content {
            padding: 2rem;
        }

        .card {
            border: none;
            border-radius: 0.75rem;
            box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
        }
        
        .app-card {
            transition: all 0.3s ease;
        }
        
        .app-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 1rem 2rem rgba(0,0,0,0.1);
        }

        .app-card .card-body {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        
        .app-icon {
            font-size: 3rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }

    </style>
</head>
<body>
    <div class="wrapper">
        <!-- Sidebar -->
        <nav class="sidebar">
            <div class="sidebar-header">
                <i class="bi bi-droplet-half logo-icon"></i>
                <a class="logo-text text-decoration-none" href="/platform">源智库 SpringBase</a>
            </div>
            
            <ul class="nav flex-column sidebar-nav">
                <li class="nav-item">
                    <a class="nav-link" href="/platform">
                        <i class="bi bi-grid-1x2-fill"></i>
                        <span>控制台</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/data-input">
                        <i class="bi bi-database-fill-add"></i>
                        <span>数据写入</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/knowledge-base">
                        <i class="bi bi-book-fill"></i>
                        <span>知识库</span>
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="/applications">
                        <i class="bi bi-app-indicator"></i>
                        <span>智能应用</span>
                    </a>
                </li>
            </ul>
        </nav>

        <!-- Main Content -->
        <div class="main-content">
            <header class="header">
                 <h2 class="mb-0 fw-bold">智能应用</h2>
            </header>

            <main class="content">
                <div class="d-flex justify-content-between align-items-center mb-4">
                    <p class="text-muted">基于您的知识库，快速构建和使用各类智能应用。</p>
                    <button class="btn btn-primary">
                        <i class="bi bi-plus-circle me-1"></i> 创建新应用
                    </button>
                </div>

                <div class="row g-4">
                    <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100">
                            <div class="card-body p-4">
                                <div class="app-icon"><i class="bi bi-file-earmark-text-fill"></i></div>
                                <h5 class="card-title">文档生成</h5>
                                <p class="card-text text-muted small">根据主题和关键点，结合知识库内容，自动生成专业的长篇文档、报告或文章。</p>
                                <a href="/document-generator" class="btn btn-outline-primary mt-auto">进入应用</a>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100">
                            <div class="card-body p-4">
                                <div class="app-icon"><i class="bi bi-chat-quote-fill"></i></div>
                                <h5 class="card-title">智能问答</h5>
                                <p class="card-text text-muted small">构建一个企业内部的智能问答机器人，精准回答员工关于产品、技术或流程的问题。</p>
                                <a href="/qa" class="btn btn-outline-primary mt-auto">进入应用</a>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100">
                            <div class="card-body p-4">
                                <div class="app-icon"><i class="bi bi-bullseye"></i></div>
                                <h5 class="card-title">内容摘要</h5>
                                <p class="card-text text-muted small">自动从长文档中提取核心观点和关键信息，快速生成内容摘要，提升信息获取效率。</p>
                                <a href="#" class="btn btn-outline-primary mt-auto">进入应用</a>
                            </div>
                        </div>
                    </div>
                    
                     <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100">
                            <div class="card-body p-4">
                                <div class="app-icon"><i class="bi bi-search-heart"></i></div>
                                <h5 class="card-title">情感分析</h5>
                                <p class="card-text text-muted small">分析用户反馈、评论或工单，自动判断情感倾向，帮助企业了解客户情绪。</p>
                                <a href="#" class="btn btn-outline-primary mt-auto">进入应用</a>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100">
                            <div class="card-body p-4">
                                <div class="app-icon"><i class="bi bi-translate"></i></div>
                                <h5 class="card-title">智能翻译</h5>
                                <p class="card-text text-muted small">提供高质量的文档翻译服务，支持多种语言互译，保持专业术语的一致性。</p>
                                <a href="#" class="btn btn-outline-primary mt-auto">进入应用</a>
                            </div>
                        </div>
                    </div>
                    
                    <div class="col-md-6 col-lg-4">
                        <div class="card app-card h-100 border-2 border-dashed">
                            <a href="#" class="text-decoration-none text-muted stretched-link">
                                <div class="card-body p-4 d-flex flex-column justify-content-center">
                                     <div class="app-icon"><i class="bi bi-plus-lg"></i></div>
                                    <h5 class="card-title">创建自定义应用</h5>
                                    <p class="card-text small">使用我们的低代码工具，构建满足您特定业务需求的智能应用。</p>
                                </div>
                            </a>
                        </div>
                    </div>

                </div>
            </main>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 